﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace Jewelnoid
{
    class BallManager
    {
        public List<Ball> ballsList;

        public BallManager(Texture2D texture, Vector2 position, int speedVector)
        {
            this.ballsList = new List<Ball>();

            this.ballsList.Add(new Ball(texture, position,speedVector));
        }

        public void draw(SpriteBatch spriteBatch)
        {
            foreach(Ball ball in this.ballsList)
            {
                ball.draw(spriteBatch);
            }
        }

        public void update()
        {
            foreach (Ball ball in this.ballsList)
            {
                ball.updateRect();
            }
        }
    }
}
